package setting

import "time"

type DatabaseConfig struct {
	Conn DatabaseConnConfig
	Pool DatabasePoolConfig
}

type DatabaseConnConfig interface {
	GetHost() string
	GetUser() string
	GetPass() string
	GetDbName() string
	GetPort() string
}

type DatabasePoolConfig interface {
	GetMaxIdleCount() int
	GetMaxOpenCount() int
	GetMaxLifeTime() time.Duration
}
